﻿using UnityEngine;
using System.Collections;
using System;

public enum CoinType
{
    Gold,
    Silver,
    Copper,
    Animal,
}

public class Coin : EatAble {

    public CoinType Type = CoinType.Gold;
    public int Score = 1;

    // Use this for initialization
    void Awake () {
        Score = 1;
        _sr = GetComponent<SpriteRenderer>();
        _collider = GetComponent<Collider2D>();

        switch (Type)
        {
            case CoinType.Gold:
                _soundPath = "Sounds/r_get_star_01";
                break;
            case CoinType.Animal:
                _soundPath = "Sounds/r_get_star_pet";
                break;
            default:
                _soundPath = "Sounds/r_get_star_01";
                break;
        }
    }
}
